package com.yh.javabean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Auther: Liang
 * @Date: 2024/5/12 - 05 - 12 - 9:22
 * @Description: com.yh.javabean
 * @version: 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class User {
    private int id;
    private String name;
    private int age;

    public  void init(){
        System.out.println("user对象创建");
    }
    public  void destroy(){
        System.out.println("user对象销毁了");
    }
}
